home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmSysInfo
- BorderStyle = 4 'Fixed ToolWindow
- Caption = "System info from user at: IPAddrees"
- ClientHeight = 3540
- ClientLeft = 45
- ClientTop = 285
- ClientWidth = 4695
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3540
- ScaleWidth = 4695
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows Default
- Begin VB.TextBox Text1
- Height = 2775
- Left = 120
- TabIndex = 1
- Text = "Text1"
- Top = 0
- Width = 4455
- End
- Begin VB.CommandButton cmdOK
- Caption = "OK"
- Height = 315
- Left = 3360
- TabIndex = 0
- Top = 3120
- Width = 975
- End
- Begin VB.Line Line1
- X1 = 0
- X2 = 4560
- Y1 = 2880
- Y2 = 2880
- End
- Attribute VB_Name = "frmSysInfo"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim Captions(1 To 9) As String
- Dim MemData(1 To 10) As String
- Dim SysDirs(1 To 3) As String
- ' --- Form supports a display for the memory and system info
- Private Sub Form_Load()
- DisplayInfo Client_.Packaged_SysInfo
- End Sub
- Private Sub DisplayInfo(sAddThese)
- Dim lStartPos As Long, SubStr As String
-
- Dim xx As Integer
- MsgBox sAddThese
- With Client_
- Captions(1) = .SystemDir
- Captions(2) = .WindowsDirectory
- Captions(3) = .MemLoad
- Captions(4) = .TotalPhys
- Captions(5) = .AvailPhys
- Captions(6) = .TotalPFile
- Captions(7) = .AvailPFile
- Captions(8) = .TotalVir
- Captions(9) = .AvailVir
- End With
-
- CurrentY = 100
- 'The File Paths will be seperated by ";", so extract them
- 'one by one and add to the combo box of choice
- lStartPos = InStr(1, sAddThese, ";")
- While lStartPos > 0
- xx = xx + 1
- SubStr = Mid$(sAddThese, 1, lStartPos - 1)
- sAddThese = Mid$(sAddThese, lStartPos + 1)
- lStartPos = InStr(1, sAddThese, ";")
- Captions(xx) = SubStr
- Wend
- End Sub
-